package com.yc.fruitmarket.biz;

import java.util.List;
import java.util.Map;

public interface userBiz {
	/**
	 * 获取所有用户信息
	 * @return
	 */
	public List<Map<String, String>> getAllUsers();
	//注册用户
	public int reg(String uname, String pwd, String email, String tel);
	//检查邮箱是否注册
	public boolean checkEmail(String email);
	//检查号码是否注册
	public boolean checkTel(String tel);
	//检查用户名是否注册
	public boolean checkUname(String uname);
	//登录查询
	public List<Map<String,String>> login(String user, String pwd);
	//获取管理员的信息
	public List<Map<String,String>> findAdminInfo();
	//条件查询用户信息
	public List<Map<String, String>> byselect(String uname, String email, String tel, String status, String pagenum);
	//封禁与解封
	public int banner(String uid, int i);
	//用户的修改
	public int updateUserData(Map<String, String> map, String pic);
	//用户重置密码
	public int cz(String uid);
	//
	public List<Map<String, String>> user(String uid);
	public int sendDataToServer(String quans, String uid);
}
